package com.kkb.projectauth.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.NotEmpty;
/**
 * @author 初心
 * @date 2021/4/14 13:21
 * 用户通过密码登录的参数
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class UserLoginParam {
    @ApiModelProperty(value = "用户名",required = true)
    @NotEmpty
    String username;
    @NotEmpty
    @ApiModelProperty(value = "密码",required = false)
    String password;
}
